﻿using System.ComponentModel.DataAnnotations;

namespace WebApi.Models;

/// <summary>
/// TodoItem model.
/// </summary>
public class TodoItem
{
    /// <summary>
    /// id
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// name
    /// </summary>
    [Required]
    public string? Name { get; set; }

    /// <summary>
    /// 是否完成
    /// </summary>
    [Required]
    public bool IsComplete { get; set; }

    /// <summary>
    /// 是否删除
    /// </summary>
    public string? Secret { get; set; }

}

/// <summary>
/// TodoDto
/// </summary>
public class TodoItemDTO
{
    /// <summary>
    /// id
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// name
    /// </summary>
    [Required]
    public string? Name { get; set; }

    /// <summary>
    /// 是否完成
    /// </summary>
    public bool IsComplete { get; set; }
}